﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace teach
{
    /// <summary>
    /// A verb grammar question
    /// </summary>
    public class Conjug : Question, ITextQuestion
    {
        public string QuestionText {get;set;}

        public Conjug()
        {
            m_message = "Conjugaison";
        }

        public override object Answer
        {
            get
            {
                return Properties["answer"];
            }
        }

        public override bool CheckAnswer(object userAnswer)
        {
            return (userAnswer.ToString().ToLower().Trim() == Answer.ToString().ToLower());
        }

        public override void GenerateValues(Preference pref)
        {
            this.Timeout = pref.Timeout * 1000;
            QuestionText = Properties["question"];
        }
    }
}
